#ifndef __APP_POOL_H__
#define __APP_POOL_H__

#include <stdio.h>
#include <pthread.h>
#include <stdlib.h>
#include "mqueue.h"
#include "../thirdpart/log/log.h"
typedef struct
{
    void (*func)(void *);
    void *arg;
}Task;
//初始化
int app_pool_init(int max_thread_num);
//关闭
void app_pool_close();
//添加任务
int app_pool_add_task(void (*func)(void *), void *arg);

#endif
